<?php

use Phinx\Migration\AbstractMigration;

class AddIsReviewedField extends AbstractMigration
{

    public function up()
    {
        $this->table("review_request")
            ->addColumn('is_reviewed', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否审核结束'])
            ->save();
    }

    public function down()
    {
        $this->table("review_request")
            ->removeColumn('is_reviewed')
            ->save();
    }
}
